package com.shrcl.engineerprocess.web.client.names

import com.uniquesoft.gwt.shared.GWTNamedEntity
//import com.industrialpark.web.shared.workbench.UIIndustryCode
//import edu.fudan.langlab.uidl.domain.app.client.names.ObjectNameService
import com.shrcl.engineerprocess.web.shared.workbench.*

class ObjectNameService extends edu.fudan.langlab.uidl.domain.app.client.names.ObjectNameService{

	override dispatch internalGetId(GWTNamedEntity o){
		o.id.toString
	}
	override dispatch String internalGetName(GWTNamedEntity o){
		o.name
	}
	
	def dispatch internalGetId(UITSCServiceTypeOptionItem o){
		o.id.toString
	}
	def dispatch String internalGetName(UITSCServiceTypeOptionItem o){
		o.sname
	}
	
    /**
	def dispatch internalGetId(UIIndustryCode o){
		o.id.toString
	}
	def dispatch String internalGetName(UIIndustryCode o){
		o.name
	}
    **/
}
